<template>
	<view class="warp">
		<view class="warp">
			<view class="uni-margin-wrap">
				<view class="notice-list-body">
					<view class="uni-list">
						<block v-for="(value, index) in list" :key="index">
							<view class="uni-list-cell" hover-class="uni-list-cell-hover">
								<view class="uni-media-list">
									<view class="uni-media-list-body">
										<view class="uni-media-list-text-top">
											<text class="text">姓名:{{ value.to_name }}</text>
										</view>
										<view class="uni-media-list-text-top">
											<text class="text1">电话:{{ value.to_mobile }}</text>
										</view>
										<view class="uni-media-list-text-bottom">
											<text class="text2">发货次数:{{ value.count }}</text>
										</view>
									</view>
								</view>
							</view>
						</block>
					</view>
				</view>
			</view>
		</view>
		<loading-cover ref="loadingCover"></loading-cover>
		 <view v-if="list.length == 0 "><ns-empty :isIndex="false" text="暂无物流客户"></ns-empty></view>
	</view>
</template>

<script>
export default {
	mixins: [],
	data() {
		return {
			list: [],
		};
	},
	
	onLoad(option) {
		if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
		this.getData();
	},
	methods: {
		 
		getData() {	
			var data = {
				page:'1',
				limit:'999999'
			}
			this.$refs.loadingCover.show();
			this.http.sendRequest({
				api: this.api.mine.mineShippersOrderCustomerApi,
				data: data,
				success: res => {
					if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
					if (res.success == 'true' && res.data) {
						this.list = res.data.data;
					}
				},
				fail: res => {
					if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
				}
			});
		},
	}
};
</script>

<style lang="scss">
@import '../public/css/myCustom.scss';
</style>
